from django.urls import path
from . import views

app_name = 'users'

urlpatterns = [
    # 用户认证
    path('register/', views.register, name='register'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    
    # 用户资料
    path('profile/', views.UserProfileView.as_view(), name='profile'),
    path('change-password/', views.change_password, name='change_password'),
    path('stats/', views.user_stats, name='user_stats'),
    
    # 风险评估
    path('risk-assessments/', views.RiskAssessmentListCreateView.as_view(), name='risk_assessments'),
    path('risk-assessments/<int:pk>/', views.RiskAssessmentDetailView.as_view(), name='risk_assessment_detail'),
]